#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
/*int main() {
	int A = 0;
	int B = 0;
	while (scanf("%d %d", &A, &B) == 2) {
		int sum = A + B;
		printf("%d\n", sum);
	}
	return 0;
}*/
/*int main() {
	int n = 0;
	int sum = 0;
	scanf("%d", &n); 
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			int x = 0;
			scanf("%d ", &x);
			sum += x;
		}
	}
	printf("%d\n", sum);
	return 0;
}*/
/*int main() {
	int a = 0;
	int b = 0;
	while (scanf("%d %d", &a, &b) == 2) {
		int M = a > b ? a : b;
		while (M) {
			if (M % a == 0 && M % b == 0) {
				printf("%d", M);
				break;
			}
			M++;
		}
	}
	return 0;
}*/
/*#include <stdio.h>

int main() {
	int n, ans = 0;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			int x;
			scanf("%d", &x);
			ans += x;
		}
	}
	printf("%d\n", ans);
	return 0;
}*/
#include<string.h>
int main() {
	char str1[] = { 0 };
	char str2[] = { 0 };
	char str3[] = { 0 };
	scanf("%s %s %s", str1, str2, str3);
	char str4[10] = strcpy(str1, str3);
	char str5[10] = strcpy(str3, str1);
	printf("%s %s %s", str4, str2, str5);
}